# Makefile for Rockchip PCIe EP driver
KERNEL_DIR ?= /lib/modules/$(shell uname -r)/build
MODULE_NAME := rk_pci

# 直接指定模块对象
obj-m := $(MODULE_NAME).o

$(MODULE_NAME)-y := pcie-dw-dmatest.o pcie-rkep.o
					
# 头文件路径
ccflags-y := -I$(PWD)

all:
	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules

clean:
	$(MAKE) -C $(KERNEL_DIR) M=$(PWD) clean

.PHONY: all clean
